home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / turttleo.swf / scripts / DefineSprite_354_options_scr / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  453 b   |  21 lines

  1. mcSoundVolume.Value = _root.hero_fall.getVolume();
  2. mcSoundVolume.OnValueChanged = function()
  3. {
  4.    Helper.SoundVolume = this.Value;
  5.    _root.set_sounds(this.Value / 100);
  6.    _root.but_tog.start();
  7. };
  8. mcMusicButton.Value = Helper.MusicEnabled;
  9. mcMusicButton.OnValueChanged = function()
  10. {
  11.    Helper.MusicEnabled = this.Value;
  12.    if(Helper.MusicEnabled)
  13.    {
  14.       Helper.PlayMusic();
  15.    }
  16.    else
  17.    {
  18.       Helper.StopMusic();
  19.    }
  20. };
  21.